<ion-view view-title="编辑单篇游记">
  <ion-nav-buttons side="secondary">
    <a class="button button-icon ion-android-done button-clear" 
    ng-disabled="!sectionData.text || !sectionData.date || !sectionData.time"
    ng-click="doSectionUpdate()"></a>
  </ion-nav-buttons>
  <ion-content>
    <ng-form name="sectionUpdateForm" >
      <ion-list>
        <ion-item>
          <label class="item item-input">
            <textarea ng-model="sectionData.text" rows="5" required placeholder="添加游记文字">
            </textarea>
          </label>
        </ion-item>
        <ion-item>
          <label class="item item-input">
            <span class="input-label">选择日期：</span>
            <input type="date"  ng-model="sectionData.date" required/>
          </label>
        </ion-item>
        <ion-item>
          <label class="item item-input">
            <span class="input-label">选择时间：</span>
            <input type="time" ng-model="sectionData.time" required/>
          </label>
        </ion-item>
        <ion-item>
          <ion-toggle ng-model="sectionData.isArticleCoverImage">设置为封面图片</ion-toggle>
          <img class="full-image" 
                ng-src="{{rootUrl}}/{{sectionData.imageFileName}}">
        </ion-item>
      </ion-list>
    </ng-form>
  </ion-content>
</ion-view>